package imper.main.view;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;
import org.newdawn.slick.state.transition.EmptyTransition;

import imper.graphic.AppliState;
import imper.main.ImageManager;

public class LoadGameView extends AppliState
{

	public LoadGameView()
	{
		super(EnumView.LOADGAME.getId());
	}

	@Override
	public void init(GameContainer arg0, StateBasedGame _sbg) throws SlickException
	{
		try
		{
			ImageManager.getInstance().loadImage(new FileInputStream("data/xml/image.xml"), true);
		}
		catch (FileNotFoundException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		_sbg.enterState(EnumView.INDUSTRYVIEW.getId(), new EmptyTransition(), new EmptyTransition()); 
	}

	@Override
	public void render(GameContainer arg0, StateBasedGame arg1, Graphics arg2) throws SlickException
	{
		// TODO Auto-generated method stub

	}

	@Override
	public void update(GameContainer arg0, StateBasedGame arg1, int arg2) throws SlickException
	{
		// TODO Auto-generated method stub

	}

}
